package com.lxb.lxbconsumertest.controller;

import com.lxb.lxbconsumertest.client.UserServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Company: 杭州云嘉云计算有限公司
 *
 * @author lxb
 */
@RestController
public class TestFeignController {
    @Autowired
    private UserServiceClient userServiceClient;

    @GetMapping("/hello")
    public String hello(@RequestParam String name){
        return userServiceClient.echo(name);
    }
}
